package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.AbnormalBikeDao;
import com.tbit.uqbike.client.pojo.AbnormalBike;
import com.tbit.uqbike.client.service.AbnormalBikeService;
import com.tbit.uqbike.client.util.DateTimeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("abnormalBikeService")
public class AbnormalBikeServiceImpl implements AbnormalBikeService {
    @Autowired
    private AbnormalBikeDao abnormalBikeDao;

    @Override
    public void insert(AbnormalBike abnormalBike) {
        abnormalBike.setAbnormalTime(DateTimeUtil.getNowTime());
        abnormalBikeDao.insert(abnormalBike);
    }
}